package com.infnoon.examplespringbootprovider;

import com.infnoon.rpc.springboot.starter.annotation.EnableRpc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 示例 Spring Boot 服务提供者应用
 */
@SpringBootApplication
@EnableRpc
public class ExampleSpringbootProviderApplication {

    public static void main(String[] args) {
        // rpc init, config = RpcConfig(name=rpc, version=1.0, ...)
        // registry init, config = RegistryConfig(registry=etcd, address=2380...)
        // TCP server started on port 8080
        SpringApplication.run(ExampleSpringbootProviderApplication.class, args);
    }

}
